package recursion;

public class recursion{
	public static void main(String args[]){
		System.out.println(rec(9));
	}
	
	public static int rec( int x ){
		 int total = 1;
		if (x >1)
		{total = x*rec(x-1);}
		return total;
	}
}
